
//4位随机数
export const randNum = () => {

    let charactors = "1234567890";

    let value = '', i;

    for (let j = 1; j <= 4; j++) {

        i = parseInt(10 * Math.random());

        value = value + charactors.charAt(i);

    }

    //console.log(value, 'rand');

    return value;
}